#ifndef __matrix_H__
#define __matrix_H__

#define datatype int
#define MAXSIZE 100

typedef struct Triple
{
	int i, j;
	datatype e;
} Triple;
typedef struct SMatrix
{
	Triple data[MAXSIZE];
	int mu, nu; //行列数
	int tu;	    //非零元素的个数
}SMatrix;
void CreateMatrix(SMatrix *matrix);
void PrintMatrix(SMatrix *matrix);
void CopyMatrix(SMatrix *matrix,SMatrix *m);
void AddMatrix(SMatrix *matrix,SMatrix * N,SMatrix *M);
void SubMatrix(SMatrix *matrix,SMatrix * N,SMatrix *M);
void TransposeMatrix(SMatrix *M,SMatrix *N);
void FastTransposeMatrix(SMatrix *M,SMatrix *N);

#endif
